﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Snake
{
    public partial class Frm_Mode : Form
    {
        public Frm_Mode()
        {
            InitializeComponent();
        }
        private void Frm_Settings_Load(object sender, EventArgs e)
        {

        }
        private void label6_Click(object sender, EventArgs e)
        {

        }
        private void cbx_DT_CheckedChanged(object sender, EventArgs e)
        {
            cbx_HT.Checked = false;
            LabRefresh();
        }

        private void cbx_HR_CheckedChanged(object sender, EventArgs e)
        {
            cbx_Easy.Checked = false;
            LabRefresh();
        }

        private void cbx_HD_CheckedChanged(object sender, EventArgs e)
        {
            LabRefresh();
        }

        private void cbx_SD_CheckedChanged(object sender, EventArgs e)
        {
            cbx_NF.Checked = false;
            LabRefresh();
        }

        private void cbx_HT_CheckedChanged(object sender, EventArgs e)
        {
            cbx_DT.Checked = false;
            LabRefresh();
        }

        private void cbx_Easy_CheckedChanged(object sender, EventArgs e)
        {
            cbx_HR.Checked = false;
            LabRefresh();
        }

        private void cbx_NF_CheckedChanged(object sender, EventArgs e)
        {
            cbx_SD.Checked = false;
            cbx_NF.Checked = true;
            LabRefresh();
        }

        private void btn_ok_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btn_cancel_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void lab_adddif_Click(object sender, EventArgs e)
        {
            
        }

        private void checkBox8_CheckedChanged(object sender, EventArgs e)
        {
            LabRefresh();
        }

        private void cbx_scorev2_CheckedChanged(object sender, EventArgs e)
        {
            LabRefresh();
        }

        private void LabRefresh()
        {
            lab_adddif.Text = "";
            lab_lowdif.Text = "";
            lab_other.Text = "";
            if(cbx_Auto.Checked) lab_other.Text += "来看精彩的机器演示吧！ ";
            if(cbx_scorev2.Checked) lab_other.Text += "不掉分数的计分法 ";
            if(cbx_DT.Checked) lab_adddif.Text += "1.5速度 ";
            if(cbx_HD.Checked) lab_adddif.Text += "蛇头周围的5*5大小的物件将被隐藏起来 ";
            if(cbx_HR.Checked) lab_adddif.Text += "撞墙撞刺都会死 ";
            if(cbx_SD.Checked) lab_adddif.Text += "3秒内不吃到食物就会死 ";
            if(cbx_HT.Checked) lab_lowdif.Text += "0.75倍速度 ";
            if(cbx_NF.Checked)lab_lowdif.Text += "你永远不会死去 ";
            if(cbx_Easy.Checked) lab_lowdif.Text += "有三次生命 撞到陷阱没关系 ";
        }

        
    }
}
